package model;

/**
 * Represents a chance field on the game board.
 * @author Group 20
 *
 */
public class Chance extends Field
{
	/**
	 * Constructor
	 * @param number: Card number
	 * @param name: Card name
	 * @param description: Card description
	 */
	public Chance(int number, String name, String description) 
	{
		super(number, name, description);
	}
	
	/**
	 * Whether or not the player can pay is handled in Card class, so landOnField always returns true. 
	 */
	@Override
	public boolean landOnField(Player player, int dicesSum, int numOfFieldTypeOwned) 
	{
		return true;
	}

	/**
	 * The real payment you get by landing on the field is calculated in the Card class,
	 * this method always returns 0.
	 */
	@Override
	public int getPayment() 
	{
		return 0;
	}

}
